﻿using QFramework;

namespace HKTools
{
    /// <summary>
    /// 发送十六进制串口数据（以字符串形式）
    /// </summary>
    public class CMD_SendHexData : AbstractCommand
    {
        string hexString;

        public CMD_SendHexData(string hexString)
        {
            this.hexString = hexString;
        }

        protected override void OnExecute()
        {
#if NET_4_6
            this.GetSystem<IHK_SerialPortSystem>().SendHexData(hexString);
#endif
        }
    }
}